/* Grundlegende Stile & Variablen */
:root {
	--primary-color: #2c3e50; /* Dunkles Blau-Grau */
	--secondary-color: #3498db; /* Helles Blau als Akzent */
	--light-gray: #f4f4f4;
	--text-color: #555;
	--font-family: 'Roboto', sans-serif;
}

/* Allgemeiner Reset */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--text-color);
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Stile für die Ladeanimation (Vorhang-Effekt) */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex; /* Für die Vorhang-Panele */
	justify-content: center;
	align-items: center;
	overflow: hidden;
	transition: opacity 0.5s 2s, visibility 0.5s 2s; /* Verzögerung, damit der Vorhang sich schließen kann */
}
#preloader.hidden {
	opacity: 0;
	visibility: hidden;
}
.curtain-panel {
	position: absolute;
	width: 50%;
	height: 100%;
	background-color: var(--primary-color);
	transition: transform 2s ease-in-out;
}
.curtain-panel.left {
	left: 0;
}
.curtain-panel.right {
	right: 0;
}
#preloader.hidden .curtain-panel.left {
	transform: translateX(-100%);
}
#preloader.hidden .curtain-panel.right {
	transform: translateX(100%);
}
.preloader-logo {
	width: 250px; /* Größe des Logos im Ladebildschirm */
	height: auto;
	z-index: 10000;
	transition: opacity 0.75s;
}
#preloader.hidden .preloader-logo {
	opacity: 0;
}

/* Header & Navigation */
header {
	background-color: #fff;
	padding: 0.5rem 0;
	border-bottom: 1px solid #ddd;
	position: sticky;
	top: 0;
	z-index: 1000;
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Stile für das Logo */
header .logo {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--primary-color);
	text-decoration: none;
}

header .logo img {
	height: 50px;
	width: auto;
}

header .logo span {
	font-size: 1.3rem;
	font-weight: 700;
}

header nav ul {
	list-style: none;
	display: flex;
}

header nav ul li {
	margin-left: 20px;
}

header nav a {
	text-decoration: none;
	color: var(--primary-color);
	font-weight: 700;
	transition: color 0.3s;
	padding: 5px;
}

header nav a:hover {
	color: var(--secondary-color);
}

/* Hero Sektion mit Slideshow */
.hero {
	position: relative;
	color: #fff;
	text-align: center;
	height: 55vh; 
	min-height: 400px;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.slideshow-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 7.5s ease-in-out;
}

.slide.active {
	opacity: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	/*background-color: rgba(0, 0, 0, 0.5);*/
	padding: 30px;
	border-radius: 10px;
	max-width: 90%;
}

.hero-content h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.cta-button {
	display: inline-block;
	background-color: var(--secondary-color);
	color: #fff;
	padding: 15px 30px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 700;
	transition: background-color 0.3s;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.cta-button:hover {
	background-color: #2980b9;
}

/* Sektion Kernaussagen */
.features {
	padding: 40px 0;
}
.feature-container {
	display: flex;
	justify-content: space-around;
	gap: 20px;
	text-align: center;
	flex-wrap: wrap;
}
.feature-box {
	flex: 1;
	min-width: 280px;
	padding: 20px;
}
.feature-box h3 {
	color: var(--primary-color);
	margin-bottom: 10px;
}

/* Allgemeine Sektionen */
.content-section {
	padding: 60px 0;
}
.content-section h2 {
	text-align: center;
	font-size: 2.5rem;
	color: var(--primary-color);
	margin-bottom: 40px;
}

.bg-light {
	background-color: var(--light-gray);
}

/* Sektion Leistungen */
.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}
.service-card {
	background-color: #fff;
	border: 1px solid #ddd;
	padding: 25px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.service-card h4 {
	color: var(--secondary-color);
	font-size: 1.3rem;
	margin-bottom: 15px;
}
.service-card ul {
	list-style-position: inside;
	padding-left: 0;
}
.service-card ul li {
	margin-bottom: 10px;
}
.hinweis {
	text-align: center;
	margin-top: 40px;
	font-style: italic;
}

/* Sektion Über Uns */
.about-container {
	display: flex;
	align-items: center;
	gap: 50px;
	flex-wrap: wrap;
}
.about-text {
	flex: 2;
	min-width: 300px;
}
.about-image {
	flex: 1;
	min-width: 300px;
	text-align: center;
}
.about-image img {
	max-width: 100%;
	width: 350px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sektion Preise */
#preise .container {
	text-align: center;
}
.pricing-info {
	max-width: 600px;
	margin: 20px auto 40px auto;
	text-align: left;
}
.pricing-info p {
	margin-bottom: 10px;
}

/* Stile für den Referenz-Slider */
.reference-slider-wrapper {
	position: relative;
	margin: 40px auto;
	max-width: 90%;
}
.reference-slider {
	display: flex;
	gap: 15px;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;  /* IE and Edge */
	scrollbar-width: none;  /* Firefox */
}
.reference-slider::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}
.reference-slider img {
	scroll-snap-align: center;
	width: 450px;
	height: 325px; 
	object-fit: cover;
	border-radius: 10px;
}
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(255, 255, 255, 0.7);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
}
.slider-btn:hover {
	background-color: white;
}
.prev-btn {
	left: -20px;
}
.next-btn {
	right: -20px;
}
		
/* Sektion Kontakt */
.contact-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 50px;
	flex-wrap: wrap; /* Wichtig für mobile Ansicht */
}
.contact-logo-block {
	flex-shrink: 0;
}
.contact-logo-block img {
	width: 250px;
	height: auto;
}
.contact-block {
	text-align: left;
	line-height: 1.8;
}
.contact-block h3 {
	color: var(--primary-color);
	margin-bottom: 15px;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--secondary-color);
	display: inline-block;
}
.contact-block p {
	margin-bottom: 5px;
}


/* Footer */
footer {
	background-color: var(--primary-color);
	color: #fff;
	text-align: center;
	padding: 20px 0;
}
footer a {
	color: #fff;
	text-decoration: none;
}
footer a:hover {
	text-decoration: underline;
}

/* Stile für den "Nach oben"-Button */
#scroll-to-top-btn {
	position: fixed;
	bottom: 30px;
	right: 30px;
	width: 50px;
	height: 50px;
	background-color: var(--secondary-color);
	color: white;
	border: none;
	border-radius: 50%;
	text-align: center;
	font-size: 24px;
	line-height: 50px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	z-index: 1000;
}
#scroll-to-top-btn.show {
	opacity: 1;
	visibility: visible;
}
#scroll-to-top-btn:hover {
	background-color: #2980b9;
}

/* --------- Hamburger Menü & Responsive Design --------- */
#hamburger-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 1001;
}
#hamburger-btn .line {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--primary-color);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

/* Media Query für mobile Geräte (bis 768px Breite) */
@media (max-width: 768px) {
	.hero-content h1 {
		font-size: 2.2rem;
	}
	
	#hamburger-btn {
		display: block;
	}

	#mobile-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100vh;
		background-color: white;
		box-shadow: -2px 0 5px rgba(0,0,0,0.1);
		transition: right 0.4s ease-in-out;
		padding-top: 80px;
		z-index: 999;
	}

	#mobile-nav.active {
		right: 0;
	}

	#mobile-nav ul {
		flex-direction: column;
		align-items: center;
	}
	#mobile-nav ul li {
		margin: 20px 0;
	}
	#mobile-nav a {
		font-size: 1.2rem;
	}

	#hamburger-btn.active .line:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	#hamburger-btn.active .line:nth-child(2) {
		opacity: 0;
	}
	#hamburger-btn.active .line:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}
}